﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GGH
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            GghServices.ServiceClient a = new GghServices.ServiceClient();
            label3.Text = a.GetUseRolerbyNameAndPassword(textBox1.Text, textBox2.Text);

            if (a.GetUseRolerbyNameAndPassword(textBox1.Text, textBox2.Text) == "Boss")
            {
                Vezeto newvezeto = new Vezeto();
                newvezeto.Show();
            }

        }
    }
}
